#DonateBox {
    width: 100%;
    height: 80px;
    text-align: center;
}

#DonateBox li {
    list-style: none;
    list-style-type: none;
}

#DonateBox p {
    color: #777777;
}

#PayBox {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 224px;
    height: 28px;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
    position: relative;
    transition: all .3s;
}

#PayBox li {
    width: 74px;
    float: left;
    text-align: center;
    border-left: 1px solid #ddd;
    background: no-repeat center center;
    background-color: rgba(204, 217, 220, 0.1);
    background-size: 45px;
    transition: all .3s;
    cursor: pointer;
    overflow: hidden;
    line-height: 600px;
    height: 28px;
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    opacity: 0.5;
}

#PayBox li:hover {
    background-color: rgba(204, 217, 220, 0.3);
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    opacity: 1;
}

#PayBox > li:first-child {
    border-width: 0;
}

#PayBox > #QQPay {
    background-image: url(icon/QQqianbao.png);
    line-height: 28px;
}

#PayBox > #QQPay:hover {
    overflow: visible;
}

#PayBox > #AliPay {
    background-image: url(icon/alipay.svg);
}

#PayBox > #WeChat {
    background-image: url(icon/wechat.svg);
}

#QRBox {
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.3);
    display: none;
    perspective: 400px;
    position: fixed;
    width: 100%;
    height: 100%;
}

#MainBox {
    cursor: pointer;
    position: absolute;
    text-align: center;
    width: 260px;
    height: 260px;
    left: calc(50% - 130px);
    top: calc(50% - 130px);
    background: #fff no-repeat center center;
    background-size: 90%;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 1s ease-in-out;
    transform-style: preserve-3d;
    transform-origin: center center;
    overflow: hidden;
}

#MainBox.showQR {
    animation-name: showQR;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-delay: 100ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    -webkit-animation: showQR 0.5s ease-in-out 100ms 1 normal forwards;
}

@keyframes showQR {
    from {
        transform: rotateX(90deg);
    }
    to {
        opacity: 1;
    }
}

#MainBox.hideQR {
    opacity: 1;
    animation-name: hideQR;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    -webkit-animation: hideQR 0.5s ease-in-out 0s 1 normal forwards;
}

@keyframes hideQR {
    from {
    }
    20%,
    50% {
        transform: scale(1.08, 1.08);
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: rotateZ(40deg) scale(0.6, 0.6);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#QRBox.fadeIn {
    display: block;
    animation: fadeIn 300ms;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

#QRBox.fadeOut {
    display: block;
    animation: fadeOut 300ms;
}
